<#include "common/layout.ftl"/>
<@layout "搜索 - ${q}">
    <#include "common/panel.ftl"/>

    <div class="layui-container">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md8">
                <div class="fly-panel">
                    <div class="fly-panel-title fly-filter">
                        <a>您正在搜索关键字 “${q}”，共有 <strong>${pageData.total}</strong> 条记录</a>
                        <a href="#signin" class="layui-hide-sm layui-show-xs-block fly-right" id="LAY_goSignin"
                           style="color: #FF5722;">去签到</a>
                    </div>
                    <ul class="fly-list">
                        <#list pageData.records as post>
                            <@postItem post></@postItem>
                        </#list>
                    </ul>
                    <#--分页-->
                    <#if pageData.total gt 0>
                        <@paging pageData></@paging>
                    </#if>
                    <!-- 无数据时 -->
                    <#if pageData.total == 0>
                        <div class="fly-none">没有相关数据</div>
                    </#if>
                </div>
            </div>

            <#include "common/right.ftl"/>
        </div>
    </div>
</@layout>